Skip to main content
POST
/
api
/
portrait
/
effects
/
face-fusion
Merge Portraits
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/effects/face-fusion \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image_target='@example-file' \
  --form image_template='@example-file' \
  --form 'source_similarity=<string>'
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "data": {
    "image": ""
  }
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image_target
file

Target image.

image_template
file

Template images.

source_similarity
string

Face similarity, where a higher numerical value indicates greater similarity.

  • 0: Consistent with the original template.
  • 1: Maximum similarity with the target image.
  • Response

    200 - application/json

    Success

    The response is of type object.